﻿using furion.blog.Domain.Shared.Enum;
using Masuit.Tools.DateTimeExt;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace furion.blog.Domain.Shared.Dto.Message
{
    /// <summary>
    /// 信息回复表单
    /// </summary>
    public class MessageRepeatDto
    {

        [JsonProperty(PropertyName = "content")]
        [Required(ErrorMessage="请填写回复内容")]
        public string Content { get; set; } = string.Empty;

        [JsonProperty(PropertyName = "toUser")]
        [Required(ErrorMessage = "缺少接收人")]
        public long? ToUser { get; set; } = null;

        /// <summary>
        /// 发送人
        /// </summary>
        public long? FromUser { get; set; } = null;

        public DateTime? CreatedTime { get; set; } = DateTime.Now;
        public long Ts { get; set; } = DateTime.Now.GetTotalNanoseconds();

        public string IsOpen { get; set; } = YesOrNoEnum.No.ToString();
        public string IsDelete { get; set; } = YesOrNoEnum.No.ToString();

    }
}
